package com.basedefence;

import com.badlogic.gdx.math.Vector2;
import com.e3roid.drawable.sprite.AnimatedSprite;

public class Base
{
	private Vector2 position;
	private Vector2 center;
	
	AnimatedSprite sprite;
	
	public Base ()
	{
		position = new Vector2();
		center = new Vector2();
	}
	
	public void setSprite (AnimatedSprite newSprite)
	{
		sprite = newSprite;
		setPosition(sprite.getRealX(), sprite.getRealY());
	}
	
	public void setPosition (int x, int y)
	{
		position.x = x;
		position.y = y;
	}
	
	public void setCenter (int x, int y)
	{
		center.x = x;
		center.y = y;
	}
	
	public int getCenterX ()
	{
		return (int) center.x;
	}
	
	public int getCenterY ()
	{
		return (int) center.y;
	}
}
